# coding:utf-8
# __ahtu__ = 'Felix'

# 将项目的源目录加入到环境变量中
import os,sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from pages.homePage import *
from time import sleep
from selenium import webdriver
import pytest


class TestSearch():

    def test_search(self):
        driver = webdriver.Chrome()
        driver.get('https://www.baidu.com/')
        HomePage(driver).input_search_text('博客园')
        HomePage(driver).click_search_button()
        sleep(5)


if __name__ =='__main__':
    pytest.main(['-sq','testSearch.py'])



